<template>
  <div>
    <van-cell center :title="title" :label="author + ' - ' + title">
      <template #right-icon>
        <van-icon name="play-circle-o" size="0.7rem" @click="fnPlay" />
      </template>
    </van-cell>
  </div>
</template>

<script>
export default {
  props: ["id","title", "author"],
  methods: {
    fnPlay() {
        this.$router.push({
            path: '/play',
            query: {
                id: this.id // 歌曲id, 通过路由跳转传递过去
            }
        })
    }
  }
};
</script>

<style></style>